﻿/*
 * @Author: zhouxiaofeng 1795065101@qq.com
 * @Date: 2025-01-05 16:48:35
 * @LastEditors: zhouxiaofeng 1795065101@qq.com
 * @LastEditTime: 2025-02-23 15:41:59
 * @FilePath: \myMusic\listitembox.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#ifndef LISTITEMBOX_H
#define LISTITEMBOX_H

#include <QWidget>
#include <QMouseEvent>

namespace Ui {
class ListItemBox;
}

class ListItemBox : public QWidget
{
    Q_OBJECT

public:
    explicit ListItemBox(QWidget *parent = 0);
    ~ListItemBox();

    void setMusicName(const QString& name);
    void setSinger(const QString& singer);
    void setAlbumName(const QString& albumName);
    void setLikeIcon(bool like);

protected:
    void enterEvent(QEvent* event);
    void leaveEvent(QEvent* event);

private slots:
    void on_likeBtn_clicked();

signals:
    void setIsLike(bool islike);

private:
    Ui::ListItemBox *ui;

    bool isLike;
};

#endif // LISTITEMBOX_H
